#include "datacenter.h"

namespace model
{
    DataCenter* DataCenter::instance = nullptr;

    DataCenter* DataCenter::getInstance()
    {
        if(nullptr == instance)
        {
            instance = new DataCenter();
        }
        return instance;
    }
    DataCenter::DataCenter(QObject *parent)
        : QObject{parent}
    {}
    DataCenter::~DataCenter()
    {
        delete kindAndTag;
    }
    const KindAndTag *DataCenter::getKindAndTagClassPtr()
    {
        if(kindAndTag == nullptr)
        {
            kindAndTag = new KindAndTag();
        }
        return kindAndTag;
    }


}
